From: Carlos Garnacho Date: Tue, 1 Feb 2022 13:12:17 +0000 (+0100) Subject: endSessionDialog: Connect to events in the dialog itself X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~530^2^2~144 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=b3f5fdcb6bb68c8b672ce611850c5b50ff44cffe;p=gnome-shell.git endSessionDialog: Connect to events in the dialog itself Connecting to stage events won't work from a modal dialog, since the grab will take events from the portions of the actor hierarchy above the grabbing actor. Connect to events from the dialog itself, so that the end session dialog can again show the "boot options" easter egg. Part-of: --- diff --git a/js/ui/endSessionDialog.js b/js/ui/endSessionDialog.js index 1fdbd11b9..9f8bcb1ba 100644 --- a/js/ui/endSessionDialog.js +++ b/js/ui/endSessionDialog.js @@ -467,7 +467,7 @@ class EndSessionDialog extends ModalDialog.ModalDialog { label: C_('button', 'Boot Options'), }); this._rebootButtonAlt.visible = false; - this._capturedEventId = global.stage.connect('captured-event', + this._capturedEventId = this.connect('captured-event', this._onCapturedEvent.bind(this)); } }